package com.wh.wisdomsite.xbox.vi.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wh.wisdomsite.xbox.vi.dao.CompHkUserMapper;
import com.wh.wisdomsite.xbox.vi.entity.CompHkUser;
import com.wh.wisdomsite.xbox.vi.service.ICompHkUserService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 公司下海康用户serviceimpl
 * @author 刘旭
 * @version V1.0
 * @Package com.wh.wisdomsite.xbox.vi.service.impl
 * @date 2018年09月05日 16:00
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
@Service("compHkUserService")
@Transactional(rollbackFor = {Exception.class,RuntimeException.class})
public class CompHkUserServiceImpl extends ServiceImpl<CompHkUserMapper, CompHkUser> implements ICompHkUserService {
    private static final Log logger = LogFactory.getLog(CompHkUserServiceImpl.class);

    @Autowired
    private CompHkUserMapper compHkUserMapper;

    @Override
    public Map<String, Object> getMapById(Serializable id) {
        return compHkUserMapper.getMapById(id);
    }

    @Override
    public List<Map<String, Object>> getMaps(Wrapper<CompHkUser> wrapper) {
        return this.baseMapper.getMaps(wrapper);
    }
}
